package com.woniuxy.usercoachassemble.service.impl;

import com.woniuxy.usercoachassemble.entity.Time;
import com.woniuxy.usercoachassemble.dao.TimeMapper;
import com.woniuxy.usercoachassemble.service.TimeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Lucas
 * @since 2020-07-10
 */
@Service
public class TimeServiceImpl extends ServiceImpl<TimeMapper, Time> implements TimeService {
@Autowired
//查询所有的时间段

private TimeMapper timeMapper;
    @Override
    public List<Time> selectalltime(){

     return  timeMapper.selectList(null);

}
}
